###############################################################################
# Makefile for XML Schema sample C files
###############################################################################

# include common definitions
include ../Makefile.defs

PROGS=	xsdtest

# make all class files
all: $(PROGS)

xsdtest: xsdtest.c
	$(CC) -o xsdtest $(INCLUDE) $@.c $(LIB)

sure: $(PROGS)
	./xsdtest car.xml > car.out
	@if cmp -s car.out car.std; then echo PASS; else echo FAIL; fi
	./xsdtest pub.xml > pub.out
	@if cmp -s pub.out pub.std; then echo PASS; else echo FAIL; fi
	./xsdtest aq.xml > aq.out
	@if cmp -s aq.out aq.std; then echo PASS; else echo FAIL; fi

clean:
	rm -f $(PROGS) *.o *.out

# end of Makefile
